package Junit;


import Factorial.Factorial;
import Server.CirculateImpl;
import Server.GroupImpl;
import Server.RecursionImpl;
import org.junit.Assert;
import org.junit.Test;

public class TestRecursion {
    @Test
    public void testRecursionImpl(){
        Factorial fact = new RecursionImpl();
        int n = fact.fact(5);
        Assert.assertEquals(120,n);
    }

    @Test
    public void testCirculateImpl(){
        Factorial fact = new CirculateImpl();
        int n = fact.fact(5);
        Assert.assertEquals(120,n);
    }
    @Test
    public void testGroupeImpl(){
        Factorial fact = new GroupImpl();
        int n = fact.fact(5);
        Assert.assertEquals(120,n);

    }

}

